package richbar.com.richbar.bean;

import android.se.omapi.SEService;

import com.common.base.BaseResult;
import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;

import richbar.com.richbar.base.S;

/**
 * Created by QiYang on 2018/11/27.
 */

public class GoodsInfoResult extends BaseResult{


    /**
     * code : 200
     * msg : 请求成功
     * data : {"info":{"goods_id":9,"goods_name":"冬加厚羊毛衫女毛衣裙中长款修身印花针织衫套头貂绒毛衣打底连衣裙","goods_price":"207.00","goods_rebate":"10.00","goods_detail":"<p>撒大声地123<br/><\/p>","goods_sale":111,"goods_view":111,"goods_sellerid":1,"goods_rate":0,"goods_collect_num":1,"goods_img":[{"id":12,"img":"/upload/15429733936269.jpeg,/upload/15433753143433.jpeg,/upload/15433753145145.jpeg,/upload/15433753335694.jpeg,/upload/15433753337542.jpeg","main":0}],"goods_sellername":"店铺1","goods_max_score":0,"goods_max_coupon":0,"attr":[{"id":4,"name":"颜色","value":[{"id":9,"name":"黄"},{"id":10,"name":"红"},{"id":11,"name":"黑"}]},{"id":5,"name":"尺码","value":[{"id":12,"name":"S"},{"id":13,"name":"M"},{"id":14,"name":"L"}]}],"attr_price":{"9-12":{"num":11,"price":"180.00","value":"9-12"},"9-13":{"num":112,"price":"189.00","value":"9-13"},"9-14":{"num":123,"price":"190.00","value":"9-14"},"10-12":{"num":123,"price":"187.00","value":"10-12"},"10-13":{"num":123,"price":"185.00","value":"10-13"},"10-14":{"num":258,"price":"184.00","value":"10-14"},"11-12":{"num":123,"price":"145.00","value":"11-12"},"11-13":{"num":123,"price":"138.00","value":"11-13"},"11-14":{"num":123,"price":"456.00","value":"11-14"}},"is_collect_goods":1,"is_collect_seller":1,"address":null,"goods_param":[],"goods_service":[]}}
     */

    private String msg;
    private DataEntity data;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataEntity getData() {
        return data;
    }

    public void setData(DataEntity data) {
        this.data = data;
    }

    public static class DataEntity implements Serializable{
        /**
         * info : {"goods_id":9,"goods_name":"冬加厚羊毛衫女毛衣裙中长款修身印花针织衫套头貂绒毛衣打底连衣裙","goods_price":"207.00","goods_rebate":"10.00","goods_detail":"<p>撒大声地123<br/><\/p>","goods_sale":111,"goods_view":111,"goods_sellerid":1,"goods_rate":0,"goods_collect_num":1,"goods_img":[{"id":12,"img":"/upload/15429733936269.jpeg,/upload/15433753143433.jpeg,/upload/15433753145145.jpeg,/upload/15433753335694.jpeg,/upload/15433753337542.jpeg","main":0}],"goods_sellername":"店铺1","goods_max_score":0,"goods_max_coupon":0,"attr":[{"id":4,"name":"颜色","value":[{"id":9,"name":"黄"},{"id":10,"name":"红"},{"id":11,"name":"黑"}]},{"id":5,"name":"尺码","value":[{"id":12,"name":"S"},{"id":13,"name":"M"},{"id":14,"name":"L"}]}],"attr_price":{"9-12":{"num":11,"price":"180.00","value":"9-12"},"9-13":{"num":112,"price":"189.00","value":"9-13"},"9-14":{"num":123,"price":"190.00","value":"9-14"},"10-12":{"num":123,"price":"187.00","value":"10-12"},"10-13":{"num":123,"price":"185.00","value":"10-13"},"10-14":{"num":258,"price":"184.00","value":"10-14"},"11-12":{"num":123,"price":"145.00","value":"11-12"},"11-13":{"num":123,"price":"138.00","value":"11-13"},"11-14":{"num":123,"price":"456.00","value":"11-14"}},"is_collect_goods":1,"is_collect_seller":1,"address":null,"goods_param":[],"goods_service":[]}
         */

        private InfoEntity info;

        public InfoEntity getInfo() {
            return info;
        }

        public void setInfo(InfoEntity info) {
            this.info = info;
        }

        public static class InfoEntity implements Serializable{
            /**
             * goods_id : 9
             * goods_name : 冬加厚羊毛衫女毛衣裙中长款修身印花针织衫套头貂绒毛衣打底连衣裙
             * goods_price : 207.00
             * goods_rebate : 10.00
             * goods_detail : <p>撒大声地123<br/></p>
             * goods_sale : 111
             * goods_view : 111
             * goods_sellerid : 1
             * goods_rate : 0
             * goods_collect_num : 1
             * goods_img : [{"id":12,"img":"/upload/15429733936269.jpeg,/upload/15433753143433.jpeg,/upload/15433753145145.jpeg,/upload/15433753335694.jpeg,/upload/15433753337542.jpeg","main":0}]
             * goods_sellername : 店铺1
             * goods_max_score : 0
             * goods_max_coupon : 0
             * attr : [{"id":4,"name":"颜色","value":[{"id":9,"name":"黄"},{"id":10,"name":"红"},{"id":11,"name":"黑"}]},{"id":5,"name":"尺码","value":[{"id":12,"name":"S"},{"id":13,"name":"M"},{"id":14,"name":"L"}]}]
             * attr_price : {"9-12":{"num":11,"price":"180.00","value":"9-12"},"9-13":{"num":112,"price":"189.00","value":"9-13"},"9-14":{"num":123,"price":"190.00","value":"9-14"},"10-12":{"num":123,"price":"187.00","value":"10-12"},"10-13":{"num":123,"price":"185.00","value":"10-13"},"10-14":{"num":258,"price":"184.00","value":"10-14"},"11-12":{"num":123,"price":"145.00","value":"11-12"},"11-13":{"num":123,"price":"138.00","value":"11-13"},"11-14":{"num":123,"price":"456.00","value":"11-14"}}
             * is_collect_goods : 1
             * is_collect_seller : 1
             * address : null
             * goods_param : []
             * goods_service : []
             */

            private int goods_id;
            private String goods_name;
            private String goods_rebate;
            private String goods_detail;
            private int goods_sale;
            private int goods_view;
            private int goods_sellerid;
            private int goods_rate;
            private int goods_collect_num;
            private String goods_sellername;
            private int goods_max_score;
            private int goods_max_coupon;
            private int is_collect_goods;
            private int is_collect_seller;
            private String goods_promotion;
            private String goods_promotion_num;
            private String address;
            private List<GoodsImgEntity> goods_img;
            private List<AttrEntity> attr;
            private List<?> goods_param;
            private List<?> goods_service;
            private String goods_collid;
            private String seller_collid;
            private String address_person;
            private String address_mobile;
            private String goods_price;
            private String address_id;
            private int cart_num;


            public int getCart_num() {
                return cart_num;
            }

            public void setCart_num(int cart_num) {
                this.cart_num = cart_num;
            }

            public String getAddress_id() {
                return address_id;
            }

            public void setAddress_id(String address_id) {
                this.address_id = address_id;
            }

            public String getAddress_person() {
                return address_person;
            }

            public void setAddress_person(String address_person) {
                this.address_person = address_person;
            }

            public String getAddress_mobile() {
                return address_mobile;
            }

            public void setAddress_mobile(String address_mobile) {
                this.address_mobile = address_mobile;
            }

            public String getGoods_collid() {
                return goods_collid;
            }

            public void setGoods_collid(String goods_collid) {
                this.goods_collid = goods_collid;
            }

            public String getSeller_collid() {
                return seller_collid;
            }

            public void setSeller_collid(String seller_collid) {
                this.seller_collid = seller_collid;
            }

            public String getGoods_promotion() {
                return goods_promotion;
            }

            public void setGoods_promotion(String goods_promotion) {
                this.goods_promotion = goods_promotion;
            }

            public String getGoods_promotion_num() {
                return goods_promotion_num;
            }

            public void setGoods_promotion_num(String goods_promotion_num) {
                this.goods_promotion_num = goods_promotion_num;
            }

            public int getGoods_id() {
                return goods_id;
            }

            public void setGoods_id(int goods_id) {
                this.goods_id = goods_id;
            }

            public String getGoods_name() {
                return goods_name;
            }

            public void setGoods_name(String goods_name) {
                this.goods_name = goods_name;
            }

            public String getGoods_price() {
                return goods_price;
            }

            public void setGoods_price(String goods_price) {
                this.goods_price = goods_price;
            }

            public String getGoods_rebate() {
                return goods_rebate;
            }

            public void setGoods_rebate(String goods_rebate) {
                this.goods_rebate = goods_rebate;
            }

            public String getGoods_detail() {
                return goods_detail;
            }

            public void setGoods_detail(String goods_detail) {
                this.goods_detail = goods_detail;
            }

            public int getGoods_sale() {
                return goods_sale;
            }

            public void setGoods_sale(int goods_sale) {
                this.goods_sale = goods_sale;
            }

            public int getGoods_view() {
                return goods_view;
            }

            public void setGoods_view(int goods_view) {
                this.goods_view = goods_view;
            }

            public int getGoods_sellerid() {
                return goods_sellerid;
            }

            public void setGoods_sellerid(int goods_sellerid) {
                this.goods_sellerid = goods_sellerid;
            }

            public int getGoods_rate() {
                return goods_rate;
            }

            public void setGoods_rate(int goods_rate) {
                this.goods_rate = goods_rate;
            }

            public int getGoods_collect_num() {
                return goods_collect_num;
            }

            public void setGoods_collect_num(int goods_collect_num) {
                this.goods_collect_num = goods_collect_num;
            }

            public String getGoods_sellername() {
                return goods_sellername;
            }

            public void setGoods_sellername(String goods_sellername) {
                this.goods_sellername = goods_sellername;
            }

            public int getGoods_max_score() {
                return goods_max_score;
            }

            public void setGoods_max_score(int goods_max_score) {
                this.goods_max_score = goods_max_score;
            }

            public int getGoods_max_coupon() {
                return goods_max_coupon;
            }

            public void setGoods_max_coupon(int goods_max_coupon) {
                this.goods_max_coupon = goods_max_coupon;
            }

            public int getIs_collect_goods() {
                return is_collect_goods;
            }

            public void setIs_collect_goods(int is_collect_goods) {
                this.is_collect_goods = is_collect_goods;
            }

            public int getIs_collect_seller() {
                return is_collect_seller;
            }

            public void setIs_collect_seller(int is_collect_seller) {
                this.is_collect_seller = is_collect_seller;
            }

            public String getAddress() {
                return address;
            }

            public void setAddress(String address) {
                this.address = address;
            }

            public List<GoodsImgEntity> getGoods_img() {
                return goods_img;
            }

            public void setGoods_img(List<GoodsImgEntity> goods_img) {
                this.goods_img = goods_img;
            }

            public List<AttrEntity> getAttr() {
                return attr;
            }

            public void setAttr(List<AttrEntity> attr) {
                this.attr = attr;
            }

            public List<?> getGoods_param() {
                return goods_param;
            }

            public void setGoods_param(List<?> goods_param) {
                this.goods_param = goods_param;
            }

            public List<?> getGoods_service() {
                return goods_service;
            }

            public void setGoods_service(List<?> goods_service) {
                this.goods_service = goods_service;
            }

            public static class GoodsImgEntity implements Serializable{
                /**
                 * id : 12
                 * img : /upload/15429733936269.jpeg,/upload/15433753143433.jpeg,/upload/15433753145145.jpeg,/upload/15433753335694.jpeg,/upload/15433753337542.jpeg
                 * main : 0
                 */

                private int id;
                private String img;
                private int main;

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public String getImg() {
                    return img;
                }

                public void setImg(String img) {
                    this.img = img;
                }

                public int getMain() {
                    return main;
                }

                public void setMain(int main) {
                    this.main = main;
                }
            }

            public static class AttrEntity implements Serializable{
                /**
                 * id : 4
                 * name : 颜色
                 * value : [{"id":9,"name":"黄"},{"id":10,"name":"红"},{"id":11,"name":"黑"}]
                 */

                private int id;
                private String name;
                private List<ValueEntity> value;

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public List<ValueEntity> getValue() {
                    return value;
                }

                public void setValue(List<ValueEntity> value) {
                    this.value = value;
                }

                public static class ValueEntity implements Serializable{
                    /**
                     * id : 9
                     * name : 黄
                     */

                    private int id;
                    private String name;

                    public int getId() {
                        return id;
                    }

                    public void setId(int id) {
                        this.id = id;
                    }

                    public String getName() {
                        return name;
                    }

                    public void setName(String name) {
                        this.name = name;
                    }
                }
            }
        }
    }
}
